<div id="content">
    <h2>Hylätyt kurssini</h2>
    <table class="completions">
        <thead>
            <tr>
                <th class="name">Kurssin nimi</th>
                <th class="credits">Opintopisteet</th>
            </tr>
        </thead>
        <tbody>
            <? $failures = $Users->get_failures($user);
            foreach ($failures as &$failure) { ?>
                <tr>
                    <td class="name"><? echo e($failure->course); ?></th>
                    <td class="credits"><? echo e($failure->credits); ?></th>
                </tr>
            <? } ?>
        </tbody>
    </table>
</div>
